package com.hyh.mongodb.config;

import com.hyh.mongodb.helper.MongoDBHelper;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * MongoDB AutoConfiguration
 *
 * @Author: heyuhua
 * @Date: 2021/1/28 16:02
 */
@ConditionalOnWebApplication
@Configuration(proxyBeanMethods = false)
public class HyhMongoDBAutoConfiguration {

    @Bean
    public MongoDBHelper mongoDBHelper() {
        return new MongoDBHelper();
    }


}
